﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ross.EntityFramework.Model
{
    [Table("Users")]
    public partial class Users : IEntity<long>
    {
        public long ID { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        [Required]
        [StringLength(50)]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Password { get; set; } = "123123";
        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(50)]
        public string EmpName { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        [StringLength(50)]
        public string Email { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        [StringLength(50)]
        public string Telphone { get; set; }
        /// <summary>
        /// 所属班组
        /// </summary>
        [StringLength(20)]
        public string GroupName { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        [StringLength(20)]
        public string EmpID { get; set; }
        /// <summary>
        /// 积分
        /// </summary>
        public decimal Points { get; set; }
        /// <summary>
        /// 无效
        /// </summary>
        [Required]
        public bool InActive { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(128)]
        public string CommentText { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 角色  Student/ Teacher/Admin 
        /// </summary>
        [StringLength(50)]
        [Required]
        public string Role { get; set; }
        /// <summary>
        /// 学习时长
        /// </summary>
        public decimal StudyTimes { get; set; }
    }
}
